<template>
  <div class="home-wrapper">
    <a-back-top />
    <nav class="nav-list-wrapper">
      <ul class="nav-list">
        <li class="nav-item active"><a href="#">推荐</a></li>
        <li class="nav-item"><a href="#">关注</a></li>
        <li class="nav-item"><a href="#">Android</a></li>
        <li class="nav-item"><a href="#">前端</a></li>
        <li class="nav-item"><a href="#">IOS</a></li>
        <li class="nav-item"><a href="#">设计</a></li>
      </ul>
    </nav>
    <section class="main-content-wrapper">
      <a-row :gutter="18">
        <a-col :span="16">
          <article-list></article-list>
        </a-col>
        <a-col :span="8">
          <a-card title="点击排行" style="margin-top: 20px">
            <a href="#" slot="extra">更多</a>
            <p>card content</p>
            <p>card content</p>
            <p>card content</p>
          </a-card>
          <a-card title="站长推荐" style="margin-top: 20px">
            <a href="#" slot="extra">更多</a>
            <p>card content</p>
            <p>card content</p>
            <p>card content</p>
          </a-card>
          <a-card title="友情链接" style="margin-top: 20px">
            <a href="#" slot="extra">更多</a>
            <p>card content</p>
            <p>card content</p>
            <p>card content</p>
          </a-card>
          <a-card title="猜你喜欢" style="margin-top: 20px">
            <a href="#" slot="extra">更多</a>
            <p>card content</p>
            <p>card content</p>
            <p>card content</p>
          </a-card>
        </a-col>
      </a-row>
    </section>
  </div>
</template>

<script>
import ArticleList from '@/components/Common/ArticleList'

export default {
  components: {
    ArticleList
  }
}
</script>

<style scoped>
.home-wrapper {
  height: 100%;
}
.nav-list-wrapper {
  height: 30px;
}
.nav-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  height: 100%;
}
.nav-item {
  height: 100%;
  align-items: center;
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  color: #71777c;
  padding: 0 1rem;
}
.nav-item:hover, .active {
  color: #007fff;
}
.nav-item a {
  color: inherit;
  background-color: transparent;
}
.main-content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
}
</style>
